package cn.gjxblog.api;

import cn.gjxblog.common.model.HttpResult;
import cn.gjxblog.model.dto.CommentDTO;
import cn.gjxblog.model.entity.Comment;
import cn.gjxblog.model.vo.CommentVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 作用:
 * 作者:gjx
 * 版本:V1.0
 * 创建时间: 2019/1/19 18:10
 */
@FeignClient(value = "comment-server",path = "/comment")
public interface CommentServerFegin {

    @PostMapping("/addComment")
    HttpResult addComment(@RequestBody CommentDTO commentDTO);


    @PostMapping("/queryComment")
    HttpResult<List<CommentVO>> queryComment(@RequestBody CommentDTO commentDTO);
}
